package pers.zh.parking.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import pers.zh.parking.po.Evaluation;
import pers.zh.parking.po.ParkingRecord;
import pers.zh.parking.po.ParkingRecordExample;

@Mapper
public interface ParkingRecordMapper {
    int countByExample(ParkingRecordExample example);

    int deleteByExample(ParkingRecordExample example);

    int deleteByPrimaryKey(Integer recordId);

    int insert(ParkingRecord record);

    int insertSelective(ParkingRecord record);

    List<ParkingRecord> selectByExample(ParkingRecordExample example);

    ParkingRecord selectByPrimaryKey(Integer recordId);

    int updateByPKey(Map map);

    int updateByExample(@Param("record") ParkingRecord record, @Param("example") ParkingRecordExample example);

    int updateByPrimaryKeySelective(ParkingRecord record);

    int updateByPrimaryKey(ParkingRecord record);

    int selectReservedCount(ParkingRecord record);

    List<ParkingRecord> getReservations(Map<String, Object> map);

    List<ParkingRecord> getEvals(Integer userId);

    Integer calFees(Integer recordId);
}